package model.webService;

import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;

public class SocketConnector 
{
	private static final int SERVERPORT = 1000;
	private static final String SERVER_IP = "192.168.30.151";	// 167 = Koen & 151 = Roel
	
	public static Socket createConnection()
	{
		try 
		{
			InetAddress serverAddr = InetAddress.getByName(SERVER_IP);
			return new Socket(serverAddr, SERVERPORT);
		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		return null;
	}
}
